package br.edu.ufcg.splab.simulator.clique.graph;

/**
 * This class represents a undirected vertex.
 **/
public class Vertex {
	/**
	 * The vertex's id.
	 */
    private int id;

    public Vertex(int id) {
        this.id = id;
    }
    
    public int getId() {
            return id;
    }

    public void setId(int id) {
            this.id = id;
    }    

    public String toString() {
            return Integer.toString(id);
    }

    public boolean equals(Object obj) {
            if (this == obj)
                    return true;
            if (obj == null)
                    return false;
            if (getClass() != obj.getClass())
                    return false;
            final Vertex other = (Vertex) obj;
            if (id != other.id)
                    return false;
            return true;
    }
}
